package fun.codedesign.yinxue.code.php2java.rule.word;

import fun.codedesign.yinxue.util.StringUtil;

public class UnderLineWordRule implements WordRule {
    @Override
    public boolean isMatch(String originWord) {
        return originWord.contains("_");
    }

    @Override
    public String invoke(String originWord) {
        return StringUtil.toCamelCase(originWord);
    }
}
